/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds.input;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;
import net.worlds.Main;
import net.worlds.ui.UI;


public class XMouseMotionListener implements MouseMotionListener{
    public void mouseDragged(MouseEvent e) {
        InputState.mouseX = e.getX();
        InputState.mouseY = Main.isEditor()? e.getY() - 55 : e.getY();
    }

    public void mouseMoved(MouseEvent e) {
        InputState.mouseX = e.getX();
        InputState.mouseY = Main.isEditor()? e.getY() - 55 : e.getY();
    }
}
